<?php
// Include development settings file
@include './development.php';

// Path to Zeus file
$zeusFile = './libraries/ZeusLib/Zeus.php';

// Check whether the Zeus file not exists
if (!file_exists($zeusFile))
{
	// Print an error message
	echo $zeusFile." was not found";

	// Stop script
	exit;
}

// Include the zeus file
require_once $zeusFile;

// Initialize Zeus
Zeus::initialize();
// Run Zeus
Zeus::run();





// TODO: remove test
include './modules/Installer/Installer.module.php';
include './modules/Installer/RewriteRules/RewriteRules.DE.php';
Installer::initialize();
Installer::frontendHandler();

RewriteRule::parse();


$mainTemplate = new Template('./templates/installer/html/main');
Template::assignAll(
	'tpl_path',  'http://localhost/php_weltherrschaft/templates/installer',
	'page_path', 'http://localhost/php_weltherrschaft'
);
$mainTemplate->assign(
	'test', 'test123'
);
echo $mainTemplate->get();

// TODO: security